package day06_work_b;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;

public class Test {
    public static void main(String[] args) {
        Collection<Movie> list = new ArrayList<>();
        list.add(new Movie("《肖申克的救赎》", 9.7, "罗宾斯"));
        list.add(new Movie("《霸王别姬》", 9.6, "张国荣、张丰益"));
        list.add(new Movie("《阿甘正传》", 9.5, "汤姆汉克斯"));
        Collection<Movie> list1 = new ArrayList<>();
        list1.add(new Movie("《美人鱼》", 9.5, "周星驰"));
        list1.add(new Movie("《天气之子》", 9.8, "新海诚"));
        list.addAll(list1);
        for (Movie movie : list) {

            System.out.println("电影名：" + movie.getName() + "\t评分：" + movie.getScore() + "\t主演：" + movie.getActor());

        }

    }
}